package com.jrx.anytxn.transaction.job.paph.step;

import com.jrx.anytxn.transaction.entity.TlServiceFeeLog;
import com.jrx.anytxn.transaction.entity.TlThirdPartyPayment;
import com.jrx.anytxn.transaction.service.IPaphFileService;
import com.jrx.anytxn.transaction.service.IServiceFeeService;
import org.springframework.batch.item.ItemProcessor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class DealServiceFeeProcessor implements ItemProcessor<TlThirdPartyPayment, TlServiceFeeLog> {

    @Autowired
    private IServiceFeeService serviceFeeService;

    @Override
    public TlServiceFeeLog process(TlThirdPartyPayment item) throws Exception {

        return serviceFeeService.dealServiceFee(item);
    }
}
